How to construct a transistor